<?php

App::uses('AppController', 'Controller');

class CoursesController extends AppController {

	var $name = 'Courses';
	var $uses = array('Course');


	/**
	 *
	 * @param type  meta
	 * @return type  meta
	 * @access public
	 */
	function index() {
		App::uses('Category', 'Model');
		$Category = new Category();
		
		$category = $Category->getInfoByType('course'); 
		$this->set('category', $category); 

		// Set Website title
        $this->set('title_for_layout' , $category['Category']['web_title']);
	}

}
